package org.jeecg.config;

import org.jeecg.util.SeqGenerator;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 设置静态参数初始化
 */
@Configuration
public class StaticSenGConfig {
//
//    @Value("${media.sms.accessKeyId}")
//    private String accessKeyId;
//
//    @Value("${media.sms.accessKeySecret}")
//    private String accessKeySecret;
//
//    @Value(value = "${spring.mail.username}")
//    private String emailFrom;

    @Bean
    public void initStatic() {
//        DySmsHelper.setAccessKeyId(accessKeyId);
//        DySmsHelper.setAccessKeySecret(accessKeySecret);
//        EmailSendMsgHandle.setEmailFrom(emailFrom);
    }

    @Bean
    public SeqGenerator taskNo() {
    	return new SeqGenerator("RW","","DATE14",0L, 9999L,"0");
    }

    @Bean
    public SeqGenerator contentNo() {
    	return new SeqGenerator("NR","","DATE14",0L, 9999L,"0");
    }

    @Bean
    public SeqGenerator activityNo() {
    	return new SeqGenerator("HD","","DATE14",0L, 9999L,"0");
    }
}
